<template>
	<view class="container">
		<view class="page-header">
			<view class="page-title">icon 图标组件</view>
			<view class="page-desc">图标类型</view>
		</view>
		
		<view class="content">
		
			<view class="section">
				<view class="section-title">基础图标</view>
				<view class="icon-grid">
					<view class="icon-item">
						<icon type="success" size="40"></icon>
						<text class="icon-name">success</text>
					</view>
					<view class="icon-item">
						<icon type="success_no_circle" size="40"></icon>
						<text class="icon-name">success_no_circle</text>
					</view>
					<view class="icon-item">
						<icon type="info" size="40"></icon>
						<text class="icon-name">info</text>
					</view>
					<view class="icon-item">
						<icon type="warn" size="40"></icon>
						<text class="icon-name">warn</text>
					</view>
					
				</view>
			</view>
			
		
			<view class="section">
				<view class="section-title">操作图标</view>
				<view class="icon-grid">
					<view class="icon-item">
						<icon type="download" size="40"></icon>
						<text class="icon-name">download</text>
					</view>
					<view class="icon-item">
						<icon type="search" size="40"></icon>
						<text class="icon-name">search</text>
					</view>
					<view class="icon-item">
						<icon type="clear" size="40"></icon>
						<text class="icon-name">clear</text>
					</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>


<style>
.container {
	background-color: #f5f5f5;
	min-height: 100vh;
}

.page-header {
	padding: 30rpx;
	text-align: center;
	background-color: #fff;
	margin-bottom: 20rpx;
}

.page-title {
	font-size: 34rpx;
	font-weight: bold;
	color: #333;
	margin-bottom: 10rpx;
}

.page-desc {
	font-size: 26rpx;
	color: #666;
}

.content {
	padding: 0 20rpx;
}

.section {
	background-color: #fff;
	border-radius: 10rpx;
	padding: 25rpx;
	margin-bottom: 20rpx;
}

.section-title {
	font-size: 30rpx;
	color: #333;
	margin-bottom: 20rpx;
	padding-bottom: 15rpx;
	border-bottom: 1px solid #eee;
}


.icon-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15rpx;
}

.icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 33.333%;
	padding: 20rpx 0;
	box-sizing: border-box;
}

.icon-name {
	font-size: 24rpx;
	color: #666;
	margin-top: 10rpx;
	text-align: center;
	word-break: break-all;
}


.custom-icons {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
}

.custom-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 15rpx;
}

.custom-desc {
	font-size: 26rpx;
	color: #666;
	margin-top: 15rpx;
}

.icon-border {
	border: 2rpx solid #ff3b30;
	border-radius: 50%;
	padding: 5rpx;
}

.interactive-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.interactive-icon {
	transition: all 0.3s ease;
}

.interactive-item:active .interactive-icon {
	transform: scale(0.9);
}

.interactive-text {
	font-size: 28rpx;
	color: #333;
	margin-top: 15rpx;
}
</style>
